//
// Created by ZLY on 2025/5/11.
//

#ifndef HUD_SKILL_H
#define HUD_SKILL_H

#include "../core/object_screen.h"

class Sprite;

class HUDSkill : public ObjectScreen {
protected:
    Sprite *icon_ = nullptr;

    float percent_ = 1.0f;

public:
    static HUDSkill *addHUDSkillChild(Object *parent, const std::string &file_path, glm::vec2 pos, float scale = 1.0f,
                                      Anchor anchor = Anchor::CENTER);
    void render() override;

    Sprite *getIcon() const {
        return icon_;
    }

    void setIcon(Sprite *icon) {
        icon_ = icon;
    }

    float getPercent() const {
        return percent_;
    }

    void setPercent(float percent);
};


#endif //HUD_SKILL_H
